import $ from 'jquery'
import "./css/index.css"
import "./less/index.less"
$(function () {
    $("#myul>li:nth-child(odd)").css('color','red')
})
$(function () {
    $("#myul>li:nth-child(even)").css('color','pink')
})

import imgurl from './assets/1.gif'
const theImg = document.createElement('img')
theImg.src = imgurl
document.body.appendChild(theImg)

// 引入字体图标
import "./assets/fonts/iconfont.css"
let theI = document.createElement('i')
theI.className = 'iconfont icon-qq'
document.body.appendChild(theI)

// 书写高版本的js语法
const fn =()=>{console.log('我十一个箭头函数')}
console.log(fn)